#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_Reward.nanopb.h"
#ifndef MAX_REWARD_REWARD_NUM
#define MAX_REWARD_REWARD_NUM 20
#endif

class RewardDesc : public NFI_DESC_TEMPLATE_MACRO(RewardDesc, E_Reward, EOT_CONST_REWARD_REWARD_DESC_ID, MAX_REWARD_REWARD_NUM)
public:
	RewardDesc();
	virtual ~RewardDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
